{template "content","header"}
<!--main-->
<div class="main">
	<div class="col-left">
        <div class="slide">
            <div class="FocusPic">
            {pc:content  action="position" posid="15" catid="$catid" order="listorder DESC" thumb="1" num="10"}
            	<div class="content" id="main-slide">
                    <div class="changeDiv">  
                    {loop $data $r}
                        <a href="{$r['url']}" title="{$r['title']}" target="_blank"><img src="{thumb($r['thumb'],698,250)}" alt="{$r['title']}" title="{$r['title']}" width="698" height="250" /></a>
                    {/loop}
                    </div>
              </div>
            {/pc}
            </div>
        </div>
        <div class="bk10"></div>
        <div class="adc">{show_ad(1, 18)}</div>
        <div class="bk10"></div>
        <div class="box">
        		<h5>最新电视剧</h5>
          {pc:content  action="position" posid="10" catid="$catid" thumb="1" order="listorder DESC" num="10"}
            <ul class="content news-photo picbig">
             {loop $data $r}
            	<li>
                    <div class="img-wrap">
                        <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],128,96)}" alt="{$r[title]}" title="{$r[title]}" width="128" height="96" /></a>
                    </div>
                    <a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a>
                </li>
                {/loop}
            </ul>
            {/pc}
        </div>
        <div class="bk10"></div>
         <!--hy tv-->
        <div class="box">
            <h5 class="title-2"><span class="rt fn f12 tab SwapTab"><span class="fb"><a href="{APP_PATH}html/tv/hy/" title="最新华语电视剧" target="_blank">最新华语电视剧</a></span> | <span> <a href="{APP_PATH}html/tv/hy/" title="热播华语电视剧" target="_blank">热播华语电视剧</a></span> | <span> <a href="{APP_PATH}html/tv/hy/" title="经典华语电视剧" target="_blank">经典华语电视剧</a></span></span></h5>
            <div class="tab-content">
            <ul class="content news-photo picbig">
						{pc:content action="lists" thumb="1" catid="14" num="10" order="id DESC"}
							{loop $data $r}
								<li>
									<div class="img-wrap">
                        <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],128,96)}" alt="{$r[title]}" title="{$r[title]}" width="128" height="96" /></a>
                  </div>
                  <a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a>
								</li>
							{/loop}
						{/pc}
			      </ul>
			      <ul class="content news-photo picbig hidden">
						{pc:content action="position" posid="16" thumb="1" catid="14" num="10" order="listorder DESC"}
							{loop $data $r}
								<li>
									<div class="img-wrap">
                        <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],128,96)}" alt="{$r[title]}" title="{$r[title]}" width="128" height="96" /></a>
                  </div>
                  <a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a>
								</li>
							{/loop}
						{/pc}
			      </ul>
			      <ul class="content news-photo picbig hidden">
						{pc:content action="position" posid="17" thumb="1" catid="14" num="10" order="listorder DESC"}
							{loop $data $r}
								<li>
									<div class="img-wrap">
                        <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],128,96)}" alt="{$r[title]}" title="{$r[title]}" width="128" height="96" /></a>
                  </div>
                  <a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a>
								</li>
							{/loop}
						{/pc}
			      </ul>			      
            </div>
        </div>
        <!--hy tv end-->
        <div class="bk10"></div>
        <!--rh tv-->
        <div class="box">
            <h5 class="title-2"><span class="rt fn f12 tab SwapTab"><span class="fb"><a href="{APP_PATH}html/tv/rh/" title="最新日韩电视剧" target="_blank">最新日韩电视剧</a></span> | <span> <a href="{APP_PATH}html/tv/rh/" title="热播日韩电视剧" target="_blank">热播日韩电视剧</a></span> | <span> <a href="{APP_PATH}html/tv/rh/" title="经典日韩电视剧" target="_blank">经典日韩电视剧</a></span></span></h5>
            <div class="tab-content">
            <ul class="content news-photo picbig">
						{pc:content action="lists" thumb="1" catid="16" num="10" order="id DESC"}
							{loop $data $r}
								<li>
									<div class="img-wrap">
                        <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],128,96)}" alt="{$r[title]}" title="{$r[title]}" width="128" height="96" /></a>
                  </div>
                  <a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a>
								</li>
							{/loop}
						{/pc}
			      </ul>
			      <ul class="content news-photo picbig hidden">
						{pc:content action="position" posid="16" thumb="1" catid="16" num="10" order="listorder DESC"}
							{loop $data $r}
								<li>
									<div class="img-wrap">
                        <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],128,96)}" alt="{$r[title]}" title="{$r[title]}" width="128" height="96" /></a>
                  </div>
                  <a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a>
								</li>
							{/loop}
						{/pc}
			      </ul>
			      <ul class="content news-photo picbig hidden">
						{pc:content action="position" posid="17" thumb="1" catid="16" num="10" order="listorder DESC"}
							{loop $data $r}
								<li>
									<div class="img-wrap">
                        <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],128,96)}" alt="{$r[title]}" title="{$r[title]}" width="128" height="96" /></a>
                  </div>
                  <a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a>
								</li>
							{/loop}
						{/pc}
			      </ul>			      
            </div>
        </div>
        <!--rh tv end-->
        <div class="bk10"></div>
        <!--om tv-->
        <div class="box">
            <h5 class="title-2"><span class="rt fn f12 tab SwapTab"><span class="fb"><a href="{APP_PATH}html/tv/om/" title="最新欧美电视剧" target="_blank">最新欧美电视剧</a></span> | <span> <a href="{APP_PATH}html/tv/om/" title="热播欧美电视剧" target="_blank">热播欧美电视剧</a></span> | <span> <a href="{APP_PATH}html/tv/om/" title="经典欧美电视剧" target="_blank">经典欧美电视剧</a></span></span></h5>
            <div class="tab-content">
            <ul class="content news-photo picbig">
						{pc:content action="lists" thumb="1" catid="15" num="10" order="id DESC"}
							{loop $data $r}
								<li>
									<div class="img-wrap">
                        <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],128,96)}" alt="{$r[title]}" title="{$r[title]}" width="128" height="96" /></a>
                  </div>
                  <a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a>
								</li>
							{/loop}
						{/pc}
			      </ul>
			      <ul class="content news-photo picbig hidden">
						{pc:content action="position" posid="16" thumb="1" catid="15" num="10" order="listorder DESC"}
							{loop $data $r}
								<li>
									<div class="img-wrap">
                        <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],128,96)}" alt="{$r[title]}" title="{$r[title]}" width="128" height="96" /></a>
                  </div>
                  <a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a>
								</li>
							{/loop}
						{/pc}
			      </ul>
			      <ul class="content news-photo picbig hidden">
						{pc:content action="position" posid="17" thumb="1" catid="15" num="10" order="listorder DESC"}
							{loop $data $r}
								<li>
									<div class="img-wrap">
                        <a href="{$r[url]}" title="{$r[title]}" target="_blank"><img src="{thumb($r[thumb],128,96)}" alt="{$r[title]}" title="{$r[title]}" width="128" height="96" /></a>
                  </div>
                  <a href="{$r[url]}" title="{$r[title]}" target="_blank">{$r[title]}</a>
								</li>
							{/loop}
						{/pc}
			      </ul>			      
            </div>
        </div>
        <!--om tv end-->
  	</div>
    <div class="col-auto">
    	<div class="adc">
  	    {show_ad(1, 16)}
      </div>
      <div class="bk10"></div>
  		<!-- tv month hits-->
      <div class="box">
          <h5>电视剧本月播放排行榜</h5>
          <h5 class="title-2"><span class="rt fn f12 tab SwapTab"><span class="fb"><a href="{APP_PATH}html/tv/" title="全部电视剧本月播放排行" target="_blank">全部</a></span> | <span> <a href="{APP_PATH}html/tv/hy/" title="华语电视剧本月播放排行" target="_blank">华语剧</a></span> | <span> <a href="{APP_PATH}html/tv/rh/" title="日韩电视剧本月播放排行" target="_blank">日韩剧</a></span> | <span> <a href="{APP_PATH}html/tv/om/" title="欧美电视剧本月播放排行" target="_blank">欧美剧</a></span></span></h5>
          <div class="tab-content">
          <ul class="content digg">
					{pc:content action="hits" catid="13" num="10" day="30" order="monthviews DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="hits">{$r[monthviews]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="hits" catid="14" num="10" day="30" order="monthviews DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="hits">{$r[monthviews]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="hits" catid="16" num="10" day="30" order="monthviews DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="hits">{$r[monthviews]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="hits" catid="15" num="10" day="30" order="monthviews DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="hits">{$r[monthviews]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>			      
          </div>
      </div>
      <!-- tv month hits end-->
      <div class="bk10"></div>
      <!-- tv all hits-->
      <div class="box">
          <h5>电视剧总播放排行榜</h5>
          <h5 class="title-2"><span class="rt fn f12 tab SwapTab"><span class="fb"><a href="{APP_PATH}html/tv/" title="全部电视剧总播放排行" target="_blank">全部</a></span> | <span> <a href="{APP_PATH}html/tv/hy/" title="华语电视剧总播放排行" target="_blank">华语剧</a></span> | <span> <a href="{APP_PATH}html/tv/rh/" title="日韩电视剧总播放排行" target="_blank">日韩剧</a></span> | <span> <a href="{APP_PATH}html/tv/om/" title="欧美电视剧总播放排行" target="_blank">欧美剧</a></span></span></h5>
          <div class="tab-content">
          <ul class="content digg">
					{pc:content action="hits" catid="13" num="10" order="views DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="hits">{$r[views]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="hits" catid="14" num="10" order="views DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="hits">{$r[views]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="hits" catid="16" num="10" order="views DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="hits">{$r[views]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="hits" catid="15" num="10" order="views DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="hits">{$r[views]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>			      
          </div>
      </div>
      <!-- tv all hits end-->
      <div class="bk10"></div>
      <!-- tv month rate-->
      <div class="box">
          <h5>2011年电视剧评分排行榜</h5>
          <h5 class="title-2"><span class="rt fn f12 tab SwapTab"><span class="fb"><a href="{APP_PATH}html/tv/" title="2011年电视剧评分排行" target="_blank">全部</a></span> | <span> <a href="{APP_PATH}html/tv/hy/" title="2011年华语电视剧评分排行" target="_blank">华语剧</a></span> | <span> <a href="{APP_PATH}html/tv/rh/" title="2011年日韩电视剧评分排行" target="_blank">日韩剧</a></span> | <span> <a href="{APP_PATH}html/tv/om/" title="2011年欧美电视剧评分排行" target="_blank">欧美剧</a></span></span></h5>
          <div class="tab-content">
          <ul class="content digg">
					{pc:content action="lists" catid="13" num="10" where="status=99 AND catid IN (13,14,15,16) AND year=2011" order="rate DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="rate">{$r[rate]}分</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="lists" catid="14" num="10" where="status=99 AND catid=14 AND year=2011" order="rate DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="rate">{$r[rate]}分</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="lists" catid="16" num="10" where="status=99 AND catid=16 AND year=2011" order="rate DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="rate">{$r[rate]}分</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="lists" catid="15" num="10" where="status=99 AND catid=15 AND year=2011" order="rate DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="rate">{$r[rate]}分</span>
							</li>
						{/loop}
					{/pc}
		      </ul>			      
          </div>
      </div>
      <!-- tv month rate end-->
      <div class="bk10"></div>
      <!-- tv all rate-->
      <div class="box">
          <h5>电视剧总评分排行榜</h5>
          <h5 class="title-2"><span class="rt fn f12 tab SwapTab"><span class="fb"><a href="{APP_PATH}html/tv/" title="全部电视剧总评分排行" target="_blank">全部</a></span> | <span> <a href="{APP_PATH}html/tv/hy/" title="华语电视剧总评分排行" target="_blank">华语剧</a></span> | <span> <a href="{APP_PATH}html/tv/rh/" title="日韩电视剧总评分排行" target="_blank">日韩剧</a></span> | <span> <a href="{APP_PATH}html/tv/om/" title="欧美电视剧总评分排行" target="_blank">欧美剧</a></span></span></h5>
          <div class="tab-content">
          <ul class="content digg">
					{pc:content action="lists" catid="13" num="10" order="rate DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="rate">{$r[rate]}分</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="lists" catid="14" num="10" order="rate DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="rate">{$r[rate]}分</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="lists" catid="16" num="10" order="rate DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="rate">{$r[rate]}分</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:content action="lists" catid="15" num="10" order="rate DESC"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="rate">{$r[rate]}分</span>
							</li>
						{/loop}
					{/pc}
		      </ul>			      
          </div>
      </div>
      <!-- tv all rate end--> 
      <div class="bk10"></div>
	    <!-- tv comment-->
	    <div class="box">
	        <h5>电视剧评论排行榜</h5>
	        <h5 class="title-2"><span class="rt fn f12 tab SwapTab"><span class="fb"><a href="{APP_PATH}html/tv/" title="电视剧评论排行" target="_blank">全部</a></span> | <span> <a href="{APP_PATH}html/tv/hy/" title="华语电视剧评论排行" target="_blank">华语剧</a></span> | <span> <a href="{APP_PATH}html/tv/rh/" title="日韩电视剧评论排行" target="_blank">日韩剧</a></span> | <span> <a href="{APP_PATH}html/tv/om/" title="欧美电视剧评论排行" target="_blank">欧美剧</a></span></span></h5>
	        <div class="tab-content">
	        <ul class="content digg">
					{pc:comment action="cat_bang" catid="13" num="10" siteid="$siteid"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="r_comment">{$r[total]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:comment action="cat_bang" catid="14" num="10" siteid="$siteid"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="r_comment">{$r[total]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:comment action="cat_bang" catid="16" num="10" siteid="$siteid"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="r_comment">{$r[total]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>
		      <ul class="content digg hidden">
					{pc:comment action="cat_bang" catid="15" num="10" siteid="$siteid"}
						{loop $data $r}
							<li>
								<a href="{$r[url]}" target="_blank" title="{$r[title]}"{title_style($r[style])}>{$r[title]}</a>
								<span class="r_comment">{$r[total]}</span>
							</li>
						{/loop}
					{/pc}
		      </ul>			      
	        </div>
	    </div>
	    <!-- tv comment end-->          
	  </div>    
    <div class="bk10"></div>
    <div class="adc">{show_ad(1, 17)}</div> 
  </div>
  <!-- main end -->
  <script type="text/javascript">
  /*
	function ChannelSlide(Name,Class){
		$(Name+' ul.photo li').sGallery({
			titleObj:Name+' div.title p',
			thumbObj:Name+' .thumb li',
			thumbNowClass:Class
		});
	}
	new ChannelSlide(".channel-slide","on",311,260);
	*/
	$(function(){
		new slide("#main-slide","cur",698,250,1);//焦点图
		new SwapTab(".SwapTab","span",".tab-content","ul","fb");//排行TAB
	})
	</script>
{template "content","footer"}